<?php
namespace App\Admin\Logic;

use App\Models\SwtMachine;

class MerchantLogic extends \App\Http\Logic\BaseLogic {


    public static function addMachine($info)
    {
        $machine_info = SwtMachine::where('machine_no', $info['machine_no'])->first();

        if($machine_info) {
            return false;
        }

        $res = SwtMachine::create($info);

        if($res) {
            return $res -> id;
        }

        return false;
    }
}
